# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'UI/MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, Application):
        Application.setObjectName("MainWindow")
        Application.resize(1280, 720)
        self.centralwidget = QtWidgets.QWidget(Application)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(970, 10, 281, 26))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout_13.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.label_3 = QtWidgets.QLabel(self.horizontalLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_13.addWidget(self.label_3)
        self.widget = QtWidgets.QWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(970, 110, 188, 29))
        self.widget.setObjectName("widget")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setSpacing(5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_2 = QtWidgets.QLabel(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_4.addWidget(self.label_2)
        self.data_type = QtWidgets.QComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.data_type.sizePolicy().hasHeightForWidth())
        self.data_type.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.data_type.setFont(font)
        self.data_type.setFrame(True)
        self.data_type.setObjectName("data_type")
        self.data_type.addItem("")
        self.data_type.addItem("")
        self.data_type.addItem("")
        self.data_type.addItem("")
        self.data_type.addItem("")
        self.data_type.addItem("")
        self.horizontalLayout_4.addWidget(self.data_type)
        self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
        self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(970, 40, 181, 27))
        self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.key_editing = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.key_editing.setObjectName("key_editing")
        self.horizontalLayout_14.addWidget(self.key_editing)
        self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(1160, 40, 96, 29))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.apply_key_button = QtWidgets.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.apply_key_button.setFont(font)
        self.apply_key_button.setObjectName("apply_key_button")
        self.verticalLayout.addWidget(self.apply_key_button)
        self.widget1 = QtWidgets.QWidget(self.centralwidget)
        self.widget1.setGeometry(QtCore.QRect(970, 80, 291, 26))
        self.widget1.setObjectName("widget1")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget1)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtWidgets.QLabel(self.widget1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.widget2 = QtWidgets.QWidget(self.centralwidget)
        self.widget2.setGeometry(QtCore.QRect(1160, 110, 96, 29))
        self.widget2.setObjectName("widget2")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.widget2)
        self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_6.setSpacing(0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.apply_button = QtWidgets.QPushButton(self.widget2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.apply_button.sizePolicy().hasHeightForWidth())
        self.apply_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.apply_button.setFont(font)
        self.apply_button.setObjectName("apply_button")
        self.horizontalLayout_6.addWidget(self.apply_button)
        self.widget3 = QtWidgets.QWidget(self.centralwidget)
        self.widget3.setGeometry(QtCore.QRect(974, 144, 281, 541))
        self.widget3.setObjectName("widget3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.widget3)
        self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.cell_editing = QtWidgets.QTextEdit(self.widget3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cell_editing.sizePolicy().hasHeightForWidth())
        self.cell_editing.setSizePolicy(sizePolicy)
        self.cell_editing.setObjectName("cell_editing")
        self.gridLayout_4.addWidget(self.cell_editing, 0, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(11, 11, 941, 681))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName("tabWidget")
        self.json_struct = QtWidgets.QWidget()
        self.json_struct.setObjectName("json_struct")
        self.gridLayout = QtWidgets.QGridLayout(self.json_struct)
        self.gridLayout.setContentsMargins(-1, -1, 5, 5)
        self.gridLayout.setSpacing(5)
        self.gridLayout.setObjectName("gridLayout")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setSpacing(0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tree = QtWidgets.QTreeWidget(self.json_struct)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tree.sizePolicy().hasHeightForWidth())
        self.tree.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.tree.setFont(font)
        self.tree.setColumnCount(2)
        self.tree.setObjectName("tree")
        self.tree.header().setDefaultSectionSize(300)
        self.tree.header().setMinimumSectionSize(80)
        self.gridLayout_2.addWidget(self.tree, 0, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.tabWidget.addTab(self.json_struct, "")
        self.data = QtWidgets.QWidget()
        self.data.setObjectName("data")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.data)
        self.gridLayout_7.setContentsMargins(-1, 5, 5, 5)
        self.gridLayout_7.setSpacing(5)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.table = QtWidgets.QTableWidget(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.table.sizePolicy().hasHeightForWidth())
        self.table.setSizePolicy(sizePolicy)
        self.table.setObjectName("table")
        self.table.setColumnCount(0)
        self.table.setRowCount(0)
        self.gridLayout_5.addWidget(self.table, 0, 0, 1, 1)
        self.gridLayout_7.addLayout(self.gridLayout_5, 1, 0, 1, 5)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.go_to_button = QtWidgets.QPushButton(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.go_to_button.sizePolicy().hasHeightForWidth())
        self.go_to_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.go_to_button.setFont(font)
        self.go_to_button.setObjectName("go_to_button")
        self.horizontalLayout_9.addWidget(self.go_to_button)
        self.gridLayout_7.addLayout(self.horizontalLayout_9, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.add_entry = QtWidgets.QPushButton(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add_entry.sizePolicy().hasHeightForWidth())
        self.add_entry.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.add_entry.setFont(font)
        self.add_entry.setObjectName("add_entry")
        self.horizontalLayout.addWidget(self.add_entry)
        self.gridLayout_7.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.add_col = QtWidgets.QPushButton(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add_col.sizePolicy().hasHeightForWidth())
        self.add_col.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.add_col.setFont(font)
        self.add_col.setObjectName("add_col")
        self.horizontalLayout_7.addWidget(self.add_col)
        self.gridLayout_7.addLayout(self.horizontalLayout_7, 0, 1, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.delete_entry = QtWidgets.QPushButton(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.delete_entry.sizePolicy().hasHeightForWidth())
        self.delete_entry.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.delete_entry.setFont(font)
        self.delete_entry.setObjectName("delete_entry")
        self.horizontalLayout_2.addWidget(self.delete_entry)
        self.gridLayout_7.addLayout(self.horizontalLayout_2, 0, 2, 1, 1)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.delete_col = QtWidgets.QPushButton(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.delete_col.sizePolicy().hasHeightForWidth())
        self.delete_col.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.delete_col.setFont(font)
        self.delete_col.setObjectName("delete_col")
        self.horizontalLayout_8.addWidget(self.delete_col)
        self.gridLayout_7.addLayout(self.horizontalLayout_8, 0, 3, 1, 1)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.searched_entry = QtWidgets.QLineEdit(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searched_entry.sizePolicy().hasHeightForWidth())
        self.searched_entry.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.searched_entry.setFont(font)
        self.searched_entry.setObjectName("searched_entry")
        self.horizontalLayout_10.addWidget(self.searched_entry)
        self.gridLayout_7.addLayout(self.horizontalLayout_10, 2, 1, 1, 2)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.entry_number = QtWidgets.QLabel(self.data)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.entry_number.sizePolicy().hasHeightForWidth())
        self.entry_number.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.entry_number.setFont(font)
        self.entry_number.setObjectName("entry_number")
        self.horizontalLayout_11.addWidget(self.entry_number)
        self.gridLayout_7.addLayout(self.horizontalLayout_11, 2, 4, 1, 1)
        self.gridLayout_7.setRowStretch(0, 1)
        self.gridLayout_7.setRowStretch(1, 18)
        self.gridLayout_7.setRowStretch(2, 1)
        self.tabWidget.addTab(self.data, "")
        Application.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(Application)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 22))
        self.menubar.setObjectName("menubar")
        self.file = QtWidgets.QMenu(self.menubar)
        self.file.setObjectName("file")
        self.about_program = QtWidgets.QAction(Application)
        self.about_program.setObjectName("about_program")
        Application.setMenuBar(self.menubar)
        self.new_file = QtWidgets.QAction(Application)
        self.new_file.setObjectName("new_file")
        self.open_file = QtWidgets.QAction(Application)
        self.open_file.setObjectName("open_file")
        self.save_file = QtWidgets.QAction(Application)
        self.save_file.setObjectName("save_file")
        self.close_file = QtWidgets.QAction(Application)
        self.close_file.setObjectName("close_file")
        self.undo = QtWidgets.QAction(Application)
        self.undo.setObjectName("undo")
        self.redo = QtWidgets.QAction(Application)
        self.redo.setObjectName("redo")
        self.exit = QtWidgets.QAction(Application)
        self.exit.setObjectName("exit")
        self.file.addAction(self.new_file)
        self.file.addAction(self.open_file)
        self.file.addAction(self.save_file)
        self.file.addAction(self.close_file)
        self.file.addSeparator()
        self.file.addAction(self.undo)
        self.file.addAction(self.redo)
        self.file.addSeparator()
        self.file.addAction(self.about_program)
        self.file.addSeparator()
        self.file.addAction(self.exit)
        self.menubar.addAction(self.file.menuAction())

        self.new_file.triggered.connect(Application.new_file_click)
        self.open_file.triggered.connect(Application.open_file_click)
        self.save_file.triggered.connect(Application.save_file_click)
        self.close_file.triggered.connect(Application.close_file_click)
        self.undo.triggered.connect(Application.undo_click)
        self.redo.triggered.connect(Application.redo_click)
        self.exit.triggered.connect(Application.exit_click)
        self.about_program.triggered.connect(Application.about_program_click)
        self.add_entry.clicked.connect(Application.add_entry_button_click)
        self.add_col.clicked.connect(Application.add_col_button_click)
        self.delete_entry.clicked.connect(Application.delete_entry_button_click)
        self.delete_col.clicked.connect(Application.delete_col_button_click)
        self.apply_button.clicked.connect(Application.apply_button_click)
        self.apply_key_button.clicked.connect(Application.apply_key_button_click)
        self.go_to_button.clicked.connect(Application.goto_button_click)

        self.retranslateUi(Application)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Application)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "JSON GUI"))
        self.label_3.setText(_translate("MainWindow", "Редактирование ключа"))
        self.label_2.setText(_translate("MainWindow", "Тип данных:"))
        self.data_type.setItemText(0, _translate("MainWindow", "String"))
        self.data_type.setItemText(1, _translate("MainWindow", "Number"))
        self.data_type.setItemText(2, _translate("MainWindow", "Object"))
        self.data_type.setItemText(3, _translate("MainWindow", "Array"))
        self.data_type.setItemText(4, _translate("MainWindow", "Boolean"))
        self.data_type.setItemText(5, _translate("MainWindow", "Null"))
        self.apply_key_button.setText(_translate("MainWindow", "Применить"))
        self.label.setText(_translate("MainWindow", "Редактирование ячейки"))
        self.apply_button.setText(_translate("MainWindow", "Применить"))
        self.tree.headerItem().setText(0, _translate("MainWindow", "Ключ"))
        self.tree.headerItem().setText(1, _translate("MainWindow", "Тип данных"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.json_struct), _translate("MainWindow", "Структура JSON файла"))
        self.go_to_button.setText(_translate("MainWindow", "Перейти к:"))
        self.add_entry.setText(_translate("MainWindow", "Добавить запись"))
        self.add_col.setText(_translate("MainWindow", "Добавить ключ"))
        self.delete_entry.setText(_translate("MainWindow", "Удалить запись"))
        self.delete_col.setText(_translate("MainWindow", "Удалить ключ"))
        self.entry_number.setText(_translate("MainWindow", "Запись"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.data), _translate("MainWindow", "Данные"))
        self.file.setTitle(_translate("MainWindow", "Файл"))
        self.about_program.setText(_translate("MainWindow", "О программе"))
        self.new_file.setText(_translate("MainWindow", "Новый JSON файл"))
        self.open_file.setText(_translate("MainWindow", "Открыть"))
        self.save_file.setText(_translate("MainWindow", "Сохранить"))
        self.close_file.setText(_translate("MainWindow", "Закрыть файл"))
        self.undo.setText(_translate("MainWindow", "Отменить"))
        self.redo.setText(_translate("MainWindow", "Вернуть"))
        self.exit.setText(_translate("MainWindow", "Выход"))
